package com.hc.fdkforwarders.controller;


import com.hc.fdkforwarders.common.Result;
import com.hc.fdkforwarders.service.BaseBusinessInfoService;
import com.hc.fdkforwarders.db.tables.records.BaseBusinessInfoRecord;
import com.hc.fdkforwarders.vo.CityPassVO_1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/forwarder")
@RestController
public class BaseBusinessInfoController {

    @Autowired
    BaseBusinessInfoService baseBusinessInfoService;

    @PostMapping("/seller/cityTree")
    public Result<CityPassVO_1> findPassCity(){
       // System.out.println(baseBusinessInfoService.findCityPass().toString());
        return  Result.ok(baseBusinessInfoService.findCityPass());
    }

    @GetMapping("/h")
    public String s(){
        return "s";
    }
}
